package com.csun.cmny.provider.model.dto.alert;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-07-12 11:56
 * @Description: the class batch handle device alert dto
 */
@Data
public class BatchHandleDeviceAlertDto {

    @NotNull(message = "{device.alert.id.list.null}")
    private List<Long> idList;

    @NotNull(message = "{device.alert.handle.status.null}")
    @Range(min = 0, max = 2, message = "{device.alert.handle.status.range}")
    private Integer handleStatus;

    @NotEmpty(message = "{device.alert.handle.remark.empty}")
    @NotNull(message = "{device.alert.handle.remark.null}")
    private String handleRemark;

}
